package cloud.topdaddy.admin.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

/**
 * 用户实体类
 *
 * @author topdaddy
 * @since 2025-07-01 14:22:43
 */
@Data
@TableName("sys_user")
@EqualsAndHashCode(callSuper = true)
public class SysUser extends Model<SysUser> {

    @TableId(type = IdType.AUTO)
    @TableField("user_id")
    private Long userId;

    /**
     * 唯一id
     */
    @Schema(description = "用户唯一标识")
    @TableField("user_uid")
    private String userUid;

    /**
     * 登录账号
     */
    @Schema(description = "用户名")
    @TableField("username")
    private String username;

    /**
     * 登录密码
     */
    @Schema(description = "密码")
    @TableField("password")
    private String password;

    /**
     * 姓名
     */
    @Schema(description = "姓名")
    @TableField("name")
    private String name;

    /**
     * 昵称
     */
    @Schema(description = "昵称")
    @TableField("nick_name")
    private String nickName;

    /**
     * 头像
     */
    @Schema(description = "头像")
    @TableField("avatar")
    private String avatar;

    /**
     * 手机号码
     */
    @Schema(description = "手机号码")
    @TableField("phone")
    private String phone;

    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    @TableField("email")
    private String email;

    /**
     * 部门id
     */
    @Schema(description = "部门id")
    @TableField("depart_id")
    private Long departId;

    /**
     * 职务级别ID
     */
    @Schema(description = "职务级别ID")
    @TableField("position_id")
    private Long positionId;

    /**
     * 是否被禁用 0否1是
     */
    @Schema(description = "是否被禁用 0否1是")
    @TableField("lock_flag")
    private Boolean lockFlag;

    /**
     * 是否删除0否 1是
     */
    @Schema(description = "是否删除0否 1是")
    @TableField("is_deleted")
    private Boolean isDeleted;

    /**
     * 备注
     */
    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

}